let vm = null;

const sendThis = (_this) => {
  console.log(_this, 'this')
  vm = _this;
};
export default {
  sendThis,
  //查看分组人员
  Columns: [{
    title: '序号',
    key: 'name',
    width: 70,
    align: 'center',
    render(h, params) {
      return h('div', params.row._index - 0 + 1)
    },
  },
  {
    title: '类型',
    key: 'changeType',
    width: 100,
    align: 'center',
    render(h, params) {
      return h('div', params.row.changeType == 1 ? '进场' : params.row.changeType == 2 ?
        '离场' : params.row.changeType == 3 ? '角色变更' : '-')
    },
  },
  {
    title: '状态',
    key: 'userState',
    width: 80,
    align: 'center',
    render(h, params) {
      return h('div', params.row.userState == 1 ? '在案' : '离案')
    },
  },
  {
    title: '角色',
    key: 'userRole',
    minWidth: 140,
    align: 'center',
    render(h, params) {
      return h('div', params.row.userRole)
    },
  },
  {
    title: '生效日期',
    key: 'effectiveDate',
    minWidth: 120,
    align: 'center',
    slot: 'effectiveDate',
  },
  {
    title: '操作',
    width: 140,
    align: 'center',
    slot: 'operate',
  }, ],
}